import request from '@/utils/request'

// 查询员工通勤列表
export function listCommuting(query) {
  return request({
    url: '/commuting/commuting/list',
    method: 'get',
    params: query
  })
}

// 查询员工通勤详细
export function getCommuting(id) {
  return request({
    url: '/commuting/commuting/' + id,
    method: 'get'
  })
}

// 新增员工通勤
export function addCommuting(data) {
  return request({
    url: '/commuting/commuting',
    method: 'post',
    data: data
  })
}

// 修改员工通勤
export function updateCommuting(data) {
  return request({
    url: '/commuting/commuting',
    method: 'put',
    data: data
  })
}

// 删除员工通勤
export function delCommuting(id) {
  return request({
    url: '/commuting/commuting/' + id,
    method: 'delete'
  })
}

// 导出员工通勤
export function exportCommuting(query) {
  return request({
    url: '/commuting/commuting/export',
    method: 'get',
    params: query
  })
}